package top.csmcool.musicapi.enums;

/*
 * @description
 * @date 2025/1/28
 * @author shijin
 * @version 1.0
 */


public enum StatusCode {

    SUCCESS("00000", "成功"),

    NEED_LOGIN("00001", "未登录，请先登录"),
    NEED_PARAM("10000", "缺少参数"),
    LOGIN_FAILED("10001", "登录失败，账号或者密码不正确"),
    ACCOUNT_DISABLED("10002", "账号已经被禁用联系管理员"),
    EMAIL_NOT_VERIFIED("10003", "邮箱未校验"),
    USER_INFO_SAVE_FAILED("10004", "用户信息保存失败,系统异常"),

    PLATFORM_ERROR("20000", "平台未实现请检查平台代码"),

    PLATFORM_IP_ERROR("20000", "更新平台信息ip错误,请使用公网ip"),

    USER_INFO_UPDATE_FAILED("30001", "用户信息更新失败");

    private String code;

    private String msg;

    StatusCode(String code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
